package com.example.demo.controller;

import com.example.demo.entity.Source;
import com.example.demo.mapper.GpaMapper;
import com.example.demo.mapper.ScatterMapper;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/getScatter")
@CrossOrigin
public class ScatterController {

    @Resource
    ScatterMapper scatterMapper;

    @GetMapping("/getDashujuScatter")
    public List<Source> getDashujuScatter() {
        List<Source> sourceList = scatterMapper.getDashujuScatter();
        return sourceList;
    }

    @GetMapping("/getJisuanjiyingyongScatter")
    public List<Source> getJisuanjiyingyongScatter() {
        List<Source> sourceList = scatterMapper.getJisuanjiyingyongScatter();
        return sourceList;
    }

    @GetMapping("/getRuanjiangongchengScatter")
    public List<Source> getRuanjiangongchengScatter() {
        List<Source> sourceList = scatterMapper.getRuanjiangongchengScatter();
        return sourceList;
    }

    @GetMapping("/getRuanjianjishuScatter")
    public List<Source> getRuanjianjishuScatter() {
        List<Source> sourceList = scatterMapper.getRuanjianjishuScatter();
        return sourceList;
    }
    @GetMapping("/getWangluogongchengScatter")
    public List<Source> getWangluogongchengScatter() {
        List<Source> sourceList = scatterMapper.getWangluogongchengScatter();
        return sourceList;
    }

    @GetMapping("/getWangluojishuScatter")
    public List<Source> getWangluojishuScatter() {
        List<Source> sourceList = scatterMapper.getWangluojishuScatter();
        return sourceList;
    }

    @GetMapping("/getWulianwangScatter")
    public List<Source> getWulianwangScatter() {
        List<Source> sourceList = scatterMapper.getWulianwangScatter();
        return sourceList;
    }

    @GetMapping("/getXinxiguanliScatter")
    public List<Source> getXinxiguanliScatter() {
        List<Source> sourceList = scatterMapper.getXinxiguanliScatter();
        return sourceList;
    }
}
